#!/bin/sh
#
# Author ： hbaolong@vip.qq.com
#
# Function : 这是一个模板
#
#
#


if [ $# -lt 1 ]; then
	echo "Usage: $0 words."
	exit
fi

TMPFILE=`echo $0|awk -F/ '{print $NF}'``date|sed -e "s/ //g"`.tmp

workdir="/Users/hbaolong/workshop/gitee/3place/dicts/"

dictfile="bdc.md"

for word in $@
do

if grep -q -i -w $word $workdir$dictfile; then
	echo $word "exist"
else
	if isword $word; then 
		echo $word >> $workdir$dictfile
	fi
fi
done

